<#ftl attributes={"content_type":"text/html; charset=UTF-8"}>
<#macro page>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${title}</title>
<#nested 'head'>
</head>
<body>
<#nested 'body'>
</body>
</html>
</#macro>

<#macro part var1 var2><#if var1=var2><#nested></#if></#macro>

<#macro html include script css>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title>${title}</title>
<#list css as s><link rel="stylesheet" type="text/css" href="${s}"/></#list>
<#list include as s><#include s></#list>
<#list script as s><script type="text/javascript" src="${s}"></script></#list>
</head>
<body>
<#nested>
</body>
</html>
</#macro>

<#macro ext p...>
<#if !p?has_content><#local p={}></#if>
<@html p.include?default(['/commons/ftl/ext_head.ftl']) p.script?default([]) p.css?default([])><#nested></@html>
</#macro>